package com.wzcl.app.dao.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.*;
import java.util.Date;

/**
 * @author beingven
 * @Description 作品秀老师点评表实体类
 * @createTime 2021年01月12日 17:23:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Entity
@Table(name = "work_show_reviews")
@JsonIgnoreProperties(value = {"workShow"})
public class WorkShowReviews {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ApiModelProperty("教师信息（关联用户表）")
    @ManyToOne(cascade={CascadeType.ALL},
            fetch=FetchType.EAGER,optional=false)
    @JoinColumn(name = "user_id")
    private AppUser appUser;

    @OneToOne
    @JoinColumn(name = "work_show_id", unique = true)
    private WorkShow workShow;

    @ApiModelProperty("点评内容之审题选材")
    private String reviewsSelectTopic;

    @ApiModelProperty("点评内容之布局构思")
    private String reviewsOverallArrangement;

    @ApiModelProperty("点评内容之语言表达")
    private String reviewsLanguageExpression;

    @ApiModelProperty("图片集合")
    private String imageList;

    @ApiModelProperty("语音")
    private String audio;

    @ApiModelProperty("评论时间")
    private Date createTime;
}
